home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / eLibPro1.3_setup.exe / Styles / Forum (CHT).xsl < prev    next >
Encoding:
Extensible Markup Language  |  2005-01-28  |  4.6 KB  |  130 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     <xsl:output method="html" />
  4.     <!-- main template begins -->
  5.     <xsl:template match="/">
  6.         <HEAD>
  7.             <LINK REL="StyleSheet" TYPE="text/css" HREF="elib.css"></LINK>
  8.             <TITLE>eLibPro σ£ûµ¢╕Φ│çΦ¿è</TITLE>
  9.         </HEAD>
  10.         <BODY leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
  11.             <xsl:apply-templates />
  12.         </BODY>
  13.     </xsl:template>
  14.     <!-- template for individual book begins -->
  15.     <xsl:template match="Book">
  16.         <table border="0" cellspacing="0" cellpadding="0" width="100%" class="maintable">
  17.             <tr>
  18.                 <td>
  19.                     <!-- book title, first table in the main table -->
  20.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  21.                         <tr>
  22.                             <td class="maintitle">
  23.                                 [color=red][b]<xsl:value-of select="Title" />[/b][/color]
  24.                                 <xsl:if test="Subtitle!=''">
  25.                                     <xsl:text> - </xsl:text>
  26.                                     <xsl:value-of select="Subtitle" />
  27.                                 </xsl:if>
  28.                             </td>
  29.                         </tr>
  30.                     </table>
  31.                     <!-- front cover, book details and back cover, second table in the main table -->
  32.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  33.                         <tr valign="top">
  34.                             <td class="detailsbg">
  35.                                 <table width="100%" border="0" cellspacing="1" cellpadding="0">
  36.                                     <!-- author -->
  37.                                     <xsl:if test="Author!=''">
  38.                                         <tr valign="top">
  39.                                             <td class="celllabel" width="10%" nowrap="1">[b]Σ╜£ΦÇà: [/b]</td>
  40.                                             <td class="cellvalue">
  41.                                                 <xsl:value-of select="Author" />
  42.                                             </td>
  43.                                         </tr>
  44.                                     </xsl:if>
  45.                                     <!-- publisher -->
  46.                                     <xsl:if test="Publisher!=''">
  47.                                         <tr valign="top">
  48.                                             <td class="celllabel" width="10%" nowrap="1">[b]σç║τëêτñ╛: [/b]</td>
  49.                                             <td class="cellvalue">
  50.                                                 <xsl:value-of select="Publisher" />
  51.                                             </td>
  52.                                         </tr>
  53.                                     </xsl:if>
  54.                                     <xsl:if test="ISBN!=''">
  55.                                         <tr valign="top">
  56.                                             <td class="celllabel" width="10%" nowrap="1">[b]ISBN: [/b]</td>
  57.                                             <td class="cellvalue">
  58.                                                 <xsl:value-of select="ISBN" />
  59.                                             </td>
  60.                                         </tr>
  61.                                     </xsl:if>
  62.                                     <xsl:if test="Edition!=''">
  63.                                         <tr valign="top">
  64.                                             <td class="celllabel" width="10%" nowrap="1">[b]τëêµ£¼: [/b]</td>
  65.                                             <td class="cellvalue">
  66.                                                 <xsl:apply-templates select="Edition" />
  67.                                             </td>
  68.                                         </tr>
  69.                                     </xsl:if>
  70.                                     <!-- release date -->
  71.                                     <xsl:if test="ReleaseDate!=''">
  72.                                         <tr valign="top" width="10%" nowrap="1">
  73.                                             <td class="celllabel" width="10%" nowrap="1">[b]τÖ╝Φíîµùѵ£ƒ: [/b]</td>
  74.                                             <td class="cellvalue">
  75.                                                 <xsl:value-of select="ReleaseDate" />
  76.                                             </td>
  77.                                         </tr>
  78.                                     </xsl:if>
  79.                                     <xsl:if test="ListPrice!=''">
  80.                                         <tr valign="top">
  81.                                             <td class="celllabel" width="10%" nowrap="1">[b]σ«Üσâ╣: [/b]</td>
  82.                                             <td class="cellvalue">
  83.                                                 $<xsl:value-of select="ListPrice" />
  84.                                             </td>
  85.                                         </tr>
  86.                                     </xsl:if>
  87.                                     <xsl:if test="PageCount!=''">
  88.                                         <tr valign="top">
  89.                                             <td class="celllabel" width="10%" nowrap="1">[b]Θáüµò╕: [/b]</td>
  90.                                             <td class="cellvalue">
  91.                                                 <xsl:value-of select="PageCount" />
  92.                                             </td>
  93.                                         </tr>
  94.                                     </xsl:if>
  95.                                     <xsl:if test="URL!=''">
  96.                                         <tr valign="top">
  97.                                             <td class="celllabel" width="10%" nowrap="1">[b]URL: [/b]</td>
  98.                                             <td class="cellvalue">
  99.                                                 <a title="{URL}" href="{URL}" class="link"><xsl:value-of select="URL" /></a>
  100.                                             </td>
  101.                                         </tr>
  102.                                     </xsl:if>
  103.                                     <xsl:if test="AmazonRating!=''">
  104.                                         <tr valign="top">
  105.                                             <td class="celllabel" width="10%" nowrap="1">[b]Amazonτö¿µê╢Φ⌐òΘææ: [/b]</td>
  106.                                             <td class="cellvalue">
  107.                                                 <xsl:value-of select="AmazonRating" /> <xsl:text> / 5</xsl:text>
  108.                                                 <xsl:if test="NumOfReviews!=''"> (<xsl:value-of select="NumOfReviews" />σÇïΦ⌐òΘææ)</xsl:if>
  109.                                             </td>
  110.                                         </tr>
  111.                                     </xsl:if>
  112.                                     <xsl:if test="ISBN!=''">
  113.                                         <tr valign="top">
  114.                                             <td class="celllabel" width="10%" nowrap="1"></td>
  115.                                             <td class="cellvalue">
  116.                                                 [img]http://images.amazon.com/images/P/<xsl:value-of select="ISBN" />.01.LZZZZZZZ.jpg[/img]
  117.                                             </td>
  118.                                         </tr>
  119.                                     </xsl:if>
  120.                                 </table>
  121.                             </td>
  122.                             <!-- end of book details -->
  123.                         </tr>
  124.                     </table>
  125.                 </td>
  126.             </tr>
  127.         </table>
  128.     </xsl:template>
  129. </xsl:stylesheet>
  130.